package com.zhouwei;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //开启springboot事务支持  需要的事务的地方加上 @Transactional 即可
@MapperScan({"com.zhouwei.dao","com.zhouwei.service"})//将项目中对应的mapper类的路径加进来就可以了
public class Application {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
        System.out.println("Application 启动成功");
    }
}